<div class="page-header">
  <span>{{widget_title}}</span>
  <button class="btn btn-xs btn-success pull-right" style="margin-top: 14.5px;" ng-click="editOrAdd('add')"> 添加机构控管 </button>
  <div class="clearfix"></div>
</div>
<table class="table table-hover table-bordered" >
  <thead>
    <tr>
      <th>序号</th>
      <th>机构名称</th>
      <th>审查机构</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
    <tr ng-repeat-start="organ_control in organ_controls">
      <td rowspan="{{organ_control.managers.length}}">{{$index + 1}}</td>
      <td rowspan="{{organ_control.managers.length}}">{{organ_control.organ.name}}</td>
      <td>{{organ_control.managers[0].name}}</td>
      <td>
        <a class="btn btn-xs btn-danger" confirm-click agree-callback="deleteOrganControl(organ_control.managers[0].register_id)"> 删除 </a>
      </td>
    </tr>
    <tr ng-repeat-end ng-repeat="manager in organ_control.managers.slice(1)">
      <td> {{manager.name}} </td>
      <td>
        <a class="btn btn-xs btn-danger" confirm-click agree-callback="deleteOrganControl(manager.register_id)"> 删除 </a>
      </td>
    </tr>
  </tbody>
</table>
